package com.billing.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.billing.model.dao.RecordBeanMapper;
import com.billing.model.entity.TRecord;
import com.billing.service.RecordService;
@Service
public class RecordServiceImpl implements RecordService {
	@Resource
	private RecordBeanMapper recordBeanMapper;
	public int insertTRecord(TRecord record) {
		return recordBeanMapper.insertTRecord(record);
	}
	public TRecord selectTRecordByDocunid(String docunid, String userid, String recordtype) {
		return recordBeanMapper.selectTRecordByDocunid(docunid, userid, recordtype);
	}
	public TRecord getTRecordByDidAndSort(String docunid, String nodesort) {
		return recordBeanMapper.getTRecordByDidAndSort(docunid, nodesort);
	}
	public int updateTRecord(TRecord record) {
		return recordBeanMapper.updateTRecord(record);
	}
	public int getRecordCopyNum(String docunid) {
		return recordBeanMapper.getRecordCopyNum(docunid);
	}
	public int updateTRecordCopyStatus(String docunid,String starttime) {
		return recordBeanMapper.updateTRecordCopyStatus(docunid,starttime);
	}
	public int getIfHandleRecordNum(String userid, String doctype, String docstatus, String searchStr) {
		return recordBeanMapper.getIfHandleRecordNum(userid, doctype, docstatus, searchStr);
	}
	public List<TRecord> getIfHandleRecordList(String userid, String doctype, String docstatus, String searchStr,
			int currentPage, int pageSize) {
		return recordBeanMapper.getIfHandleRecordList(userid, doctype, docstatus, searchStr, currentPage, pageSize);
	}
	public List<TRecord> getRecordListByApp(String docid) {
		return recordBeanMapper.getRecordListByApp(docid);
	}
	public TRecord getTRecordByDocunid(String docunid, String recordtype) {
		return recordBeanMapper.getTRecordByDocunid(docunid, recordtype);
	}


}
